package com.k2data.k2app.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.k2data.k2app.constant.Constant;
import com.k2data.k2app.domain.po.TaskDTO;
import com.k2data.k2app.util.DateFormatterUtil;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 模型列表
 * Created by clb on 17-4-5.
 */
@Data
public class Model {
	private Long id;
	private Long algTypeId;
	private String name;
	private String downloadUrl;
	private String shortDesc;
	private String picUrl;
	private String dataSource;
	private String analysisType;
	private Integer jobCount;
	private String owner;
	/**
	 * 本模型是否可用
	 */
	private boolean useFul;
	/**
	 * 模型的模板模型是否可用
	 */
	private boolean useFulTemplate;

	@JsonFormat(pattern = Constant.ISO_FORMAT)
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
	private LocalDateTime createTime;

	@JsonFormat(pattern = Constant.ISO_FORMAT)
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
	private LocalDateTime updateTime;

	private List<TaskDTO> tasks;
}
